#include <QApplication>
#include <QLoggingCategory>
#include "master/modbus_rtu_master.h"
#include "master/modbus_tcp_master.h"
#include "slave/modbus_tcp_slave.h"
#include "slave/modbus_rtu_slave.h"

int main(int argc, char *argv[])
{
    //打开modbus debug日志输出
    QLoggingCategory::setFilterRules(QStringLiteral("qt.modbus* = true"));
    QApplication a(argc, argv);
    //modbus_tcp_master w;
    modbus_rtu_master w;
    // modbus_tcp_slave w;
    // modbus_rtu_slave w;

    w.show();

    return a.exec();
}

